#pragma once

#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>

#include "../windows_service/systicket/systicket.h"

#define m_systempause_start(time_interval)                \
  {                                                       \
    static ticket_ms_t last_time;                         \
    if (m_get_ticket_ms() - last_time >= time_interval) { \
      last_time = m_get_ticket_ms();

#define m_systempause_end() \
  }                         \
  }
